<%--
    Document   : login
    Created on : 07/06/2011, 15:26:01
    Author     : pauloferreira
--%>

<%@page contentType="text/html;charset=UTF-8" language="java"%>
<%@page isELIgnored="false"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<f:loadBundle basename="Adkiraki.mensagens" var="msg"/>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>ADKIRAKI©</title>
    <script language="JavaScript" src="${pageContext.request.contextPath}/Pages/JS/Adkiraki.js"></script>
    <link href="${pageContext.request.contextPath}/Pages/CSS/Adkiraki.css" type="text/css" rel="STYLESHEET"></link>    
</head>
<body>
<f:view>
<h:form id="login">       
    <table>
        <!-- Cabeçalho -->
        <tr>
            <td colspan="4" class="header">
            </td>
        </tr>
    </table>
    <table>
        <tr id="principal">
            <!-- Login -->
            <td style="width:450px;white-space: nowrap;" valign="top">
            </td>
            <td style="width:175px;" valign="top">
                <div class="divlogin">
                        <table width="100%" border="0" cellspacing="0" cellpadding="3">
                            <tr>
                                <td style="width:25%;" class="label">
                                    <div style="align:right;">Login:</div>
                                </td>
                                <td style="width:75%;" valign="bottom">
                                    <h:inputText id="login" value="#{loginBean.login}" required="true" requiredMessage="Preencher o campo Login." style="width:90%" maxlength="25"/>
                                </td>
                            </tr>
                            <tr>
                                <td class="label">
                                    <div style="align:right;">Senha:</div>
                                </td>
                                <td>
                                    <h:inputSecret id="senha" value="#{loginBean.senha}" required="true" requiredMessage="Preencher o campo Senha." style="width:90%" maxlength="16"/>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" class="button">
                                    <h:commandButton id="ok" value="#{msg.btn_login}" type="submit" action="#{loginBean.Login}"/>
                                </td>
                            </tr>
                            <tr>
                                <td style="white-space: nowrap">
                                    <h:outputLink value="/Pages/View/registro.jsf"><h:outputText value="Registrar" style="color:black"/><img src="../../images/small.jpg" width="9" height="9" alt=""/></h:outputLink>
                                </td>
                            </tr>
                        </table>
                </div>
            </td>
        </tr>
    </table>
    <p>
        <h:messages styleClass="messages_erro"/>
    </p>         
</h:form>
</f:view>                                                            
</body>
</html>